<template>
  <div class="login-container">
    <h2>Login</h2>
    <form @submit.prevent="handleLogin">
      <input type="text" name="username" placeholder="Username" v-model="username" required>
      <input type="password" name="password" placeholder="Password" v-model="password"  required>
      <input type="submit" value="Login">
    </form>
  </div>

</template>

<script>
export default {
  name: "login",
  data(){
    return{
      username:'',
      password:''


    }
  },
  methods:{
    handleLogin(){
      window.alert(this.username+this.password)
    }

  }
}


</script>



<style scoped>

body {
  font-family: Arial, sans-serif;
  background-color: #FFD700; /* Yellow background */
}

.login-container {
  width: 300px;
  margin: 100px auto;
  padding: 20px;
  background-color: #FFF;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.login-container input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #FFD700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-container input[type="submit"]:hover {
  background-color: #FFC300; /* Darker yellow on hover */
}




</style>